import request from '@/utils/request'

// 查询专家基本信息列表
export function listProgrammer(query) {
  return request({
    url: '/web/ENGINEER/list',
    method: 'get',
    data: query
  })
}

// 查询专家基本信息详细
export function getProgrammer(id) {
  return request({
    url: '/web/ENGINEER/' + id,
    method: 'get'
  })
}

// 新增专家基本信息
export function addProgrammer(data) {
  return request({
    url: '/web/ENGINEER',
    method: 'post',
    data: data
  })
}

// 修改专家基本信息
export function updateProgrammer(data) {
  return request({
    url: '/web/ENGINEER',
    method: 'put',
    data: data
  })
}

// 删除专家基本信息
export function delProgrammer(id) {
  return request({
    url: '/person/EXPERT_BASIC/' + id,
    method: 'delete'
  })
}

// 提交专家基本信息
export function submitProgrammer(id) {
  return request({
    url: '/person/EXPERT_BASIC/submit/' + id,
    method: 'put'
  })
}
// 审核专家基本信息
export function appProgrammer(id) {
  return request({
    url: '/person/EXPERT_BASIC/approval/' + id,
    method: 'put'
  })
}
// 驳回专家基本信息
export function rejectProgrammer(data) {
  return request({
    url: '/person/EXPERT_BASIC/reject',
    method: 'put',
    data: data
  })
}
